package com.pucheng.bracelet.app.database.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.pucheng.bracelet.data.bean.Sao2Bean
import kotlinx.coroutines.flow.Flow

@Dao
interface Sao2Dao {

    @Insert
    suspend fun insert(vararg sao2Bean: Sao2Bean)

    @Query("SELECT * FROM sao2")
    fun getAll(): Flow<List<Sao2Bean>>

    @Query("SELECT * FROM sao2 limit 0,7")
    fun get7Days(): Flow<List<Sao2Bean>>

}